package cn.hxzy.icon.icon.entity.po;

import cn.hxzy.icon.icon.entity.IconGroup;
import lombok.Data;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * @author little black
 */
@Data
public class IconPo {
    private Integer id;
    /**
     * 菜单名字
     */
    private String name;
    /**
     * 顺序：越大越靠前
     */
    private Integer orders;
    /**
     * 图片字节码
     */
    private byte[] imgByte;
    /**
     * group
     */
    @ManyToOne
    @JoinColumn(name = "group_id")
    private IconGroup group;
}
